import request from '@/utils/request'


// 获取订单数据列表
export const reqOrderList = (page,limit) => request({
    url: `/admin/order/orderList/${page}/${limit}`,
    method:'GET'
})

// 根据订单号搜索订单
export const reqSearchOrderById = (id) => request({
    url: `/admin/order/searchOrder/${id}`,
    method: 'GET'
})

// 修改订单状态
export const reqUpdateStatus = (order) => request({
    url: '/admin/order/updateStatus',
    method: 'POST',
    data:order
})

// 删除订单
export const reqDeleteOrder = (id) => request({
    url: `/admin/order/delete/${id}`,
    method: 'GET'
})

// 订单详情
export const reqOrderDetail = (id) => request({
    url: `/admin/orderDetail/list/${id}`,
    method:'GET'
})
